﻿using Csla.Data;

namespace Accounting.Library
{
    public class LoaiHoaDonService
    {
        private static int HoaDonGTGT = 1;
        private static int HoaDonThongThuong = 2;
        private static int HoaDonNoiBo = 3;

        /// <summary>
        /// Kiem tra xem hoa don co phai la hoa don gtgt hay khong
        /// </summary>
        /// <param name="ctx">Data access context</param>
        /// <param name="khoa">Ma loai hoa don</param>
        /// <returns></returns>
        public static bool LaHoaDonGiaTriGiaTang(ContextManager<Accounting.DataAccess.AccountingDataContext> ctx, int khoa) 
        {
            if (khoa == HoaDonGTGT)
                return true;
            else
                return false;
        }
    }
}
